Optimal. Leaf size=72 \[ \frac {x (a d-b c (1-n)) \, _2F_1\left (1,\frac {1}{n};1+\frac {1}{n};-\frac {b x^n}{a}\right )}{a^2 b n}+\frac {x (b c-a d)}{a b n \left (a+b x^n\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 72, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.118, Rules used = {385, 245} \[ \frac {x (a d-b c (1-n)) \, _2F_1\left (1,\frac {1}{n};1+\frac {1}{n};-\frac {b x^n}{a}\right )}{a^2 b n}+\frac {x (b c-a d)}{a b n \left (a+b x^n\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 245
Rule 385
Rubi steps
\begin {align*} \int \frac {c+d x^n}{\left (a+b x^n\right )^2} \, dx &=\frac {(b c-a d) x}{a b n \left (a+b x^n\right )}+\frac {(a d-b c (1-n)) \int \frac {1}{a+b x^n} \, dx}{a b n}\\ &=\frac {(b c-a d) x}{a b n \left (a+b x^n\right )}+\frac {(a d-b c (1-n)) x \, _2F_1\left (1,\frac {1}{n};1+\frac {1}{n};-\frac {b x^n}{a}\right )}{a^2 b n}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.04, size = 56, normalized size = 0.78 \[ \frac {x \left (\frac {d}{a+b x^n}-\frac {(a d+b c (n-1)) \, _2F_1\left (2,\frac {1}{n};1+\frac {1}{n};-\frac {b x^n}{a}\right )}{a^2}\right )}{b-b n} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.65, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {d x^{n} + c}{b^{2} x^{2 \, n} + 2 \, a b x^{n} + a^{2}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {d x^{n} + c}{{\left (b x^{n} + a\right )}^{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.59, size = 0, normalized size = 0.00 \[ \int \frac {d \,x^{n}+c}{\left (b \,x^{n}+a \right )^{2}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ {\left (b c {\left (n - 1\right )} + a d\right )} \int \frac {1}{a b^{2} n x^{n} + a^{2} b n}\,{d x} + \frac {{\left (b c - a d\right )} x}{a b^{2} n x^{n} + a^{2} b n} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {c+d\,x^n}{{\left (a+b\,x^n\right )}^2} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [C] time = 8.77, size = 592, normalized size = 8.22 \[ c \left (\frac {n x \Phi \left (\frac {b x^{n} e^{i \pi }}{a}, 1, \frac {1}{n}\right ) \Gamma \left (\frac {1}{n}\right )}{a \left (a n^{3} \Gamma \left (1 + \frac {1}{n}\right ) + b n^{3} x^{n} \Gamma \left (1 + \frac {1}{n}\right )\right )} + \frac {n x \Gamma \left (\frac {1}{n}\right )}{a \left (a n^{3} \Gamma \left (1 + \frac {1}{n}\right ) + b n^{3} x^{n} \Gamma \left (1 + \frac {1}{n}\right )\right )} - \frac {x \Phi \left (\frac {b x^{n} e^{i \pi }}{a}, 1, \frac {1}{n}\right ) \Gamma \left (\frac {1}{n}\right )}{a \left (a n^{3} \Gamma \left (1 + \frac {1}{n}\right ) + b n^{3} x^{n} \Gamma \left (1 + \frac {1}{n}\right )\right )} + \frac {b n x x^{n} \Phi \left (\frac {b x^{n} e^{i \pi }}{a}, 1, \frac {1}{n}\right ) \Gamma \left (\frac {1}{n}\right )}{a^{2} \left (a n^{3} \Gamma \left (1 + \frac {1}{n}\right ) + b n^{3} x^{n} \Gamma \left (1 + \frac {1}{n}\right )\right )} - \frac {b x x^{n} \Phi \left (\frac {b x^{n} e^{i \pi }}{a}, 1, \frac {1}{n}\right ) \Gamma \left (\frac {1}{n}\right )}{a^{2} \left (a n^{3} \Gamma \left (1 + \frac {1}{n}\right ) + b n^{3} x^{n} \Gamma \left (1 + \frac {1}{n}\right )\right )}\right ) + d \left (\frac {n^{2} x x^{n} \Gamma \left (1 + \frac {1}{n}\right )}{a \left (a n^{3} \Gamma \left (2 + \frac {1}{n}\right ) + b n^{3} x^{n} \Gamma \left (2 + \frac {1}{n}\right )\right )} - \frac {n x x^{n} \Phi \left (\frac {b x^{n} e^{i \pi }}{a}, 1, 1 + \frac {1}{n}\right ) \Gamma \left (1 + \frac {1}{n}\right )}{a \left (a n^{3} \Gamma \left (2 + \frac {1}{n}\right ) + b n^{3} x^{n} \Gamma \left (2 + \frac {1}{n}\right )\right )} + \frac {n x x^{n} \Gamma \left (1 + \frac {1}{n}\right )}{a \left (a n^{3} \Gamma \left (2 + \frac {1}{n}\right ) + b n^{3} x^{n} \Gamma \left (2 + \frac {1}{n}\right )\right )} - \frac {x x^{n} \Phi \left (\frac {b x^{n} e^{i \pi }}{a}, 1, 1 + \frac {1}{n}\right ) \Gamma \left (1 + \frac {1}{n}\right )}{a \left (a n^{3} \Gamma \left (2 + \frac {1}{n}\right ) + b n^{3} x^{n} \Gamma \left (2 + \frac {1}{n}\right )\right )} - \frac {b n x x^{2 n} \Phi \left (\frac {b x^{n} e^{i \pi }}{a}, 1, 1 + \frac {1}{n}\right ) \Gamma \left (1 + \frac {1}{n}\right )}{a^{2} \left (a n^{3} \Gamma \left (2 + \frac {1}{n}\right ) + b n^{3} x^{n} \Gamma \left (2 + \frac {1}{n}\right )\right )} - \frac {b x x^{2 n} \Phi \left (\frac {b x^{n} e^{i \pi }}{a}, 1, 1 + \frac {1}{n}\right ) \Gamma \left (1 + \frac {1}{n}\right )}{a^{2} \left (a n^{3} \Gamma \left (2 + \frac {1}{n}\right ) + b n^{3} x^{n} \Gamma \left (2 + \frac {1}{n}\right )\right )}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________